<div id="operator">
    <!-- <ul id="fiHeader" class="nav nav-tabs">
        <li class="active dropdown">
            <a href="" class="dropdown-toggle" data-toggle="tab">装货列表</a>
        </li>
        <li class=" dropdown">
            <a href="" class="dropdown-toggle" data-toggle="tab">运单列表</a>
        </li>
        <li class=" dropdown">
            <a href="" class="dropdown-toggle" data-toggle="tab">历史运单</a>
        </li>
    </ul> -->
    <div id="warehouseCon" class="tab-content fi-tab-content">
        <div class="col-part">
            <div class="box box-l">
                <h4 class="title">待办工作</h4>
                <div class="worklist" id="worklist">
                    <a href="/#Standard_List" class="list">
                        <p class="tip"><em class="num" id="workLe1"></em>单</p>
                        <p>最新标单</p>
                    </a>
                    <a href="/#Standard_List" class="list">
                        <p class="tip"><em class="num" id="workLe2"></em>单</p>
                        <p>竟标开始</p>
                    </a>
                    <a href="/#Standard_List" class="list">
                        <p class="tip"><em class="num" id="workLe3"></em>单</p>
                        <p>竟标结束</p>
                    </a>
                    <a href="/#Standard_List" class="list">
                        <p class="tip"><em class="num" id="workLe4"></em>单</p>
                        <p>竟标选标</p>
                    </a>
                </div>
            </div>
            <div class="box box-r">
                <h4 class="title">公告</h4>
                <a href="javascript:;" class="more" id="Nmore" type="notice">更多&gt;&gt;</a>
                <div class="announce">
                    <ul id="announce">
                        
                    </ul>
                </div>
            </div>
        </div>
        <div class="col-part none">
            <div class="box box-l none">
                <h4 class="title">工作总汇（一周内）</h4>
                <table class="table table-hover table-responsive">
                    <tbody>
                        <tr class="thead">
                            <td>发布标书</td>
                            <td>完成竞标</td>
                            <td>完成运单</td>
                            <td>账单结账</td>
                            <td>未结费用</td>
                            <td>节省费用</td>
                        </tr>
                    </tbody>
                    <tbody class="tbody tbody-2">
                        <tr>
                            <td>400单</td>
                            <td>300单</td>
                            <td>300单</td>
                            <td>4500元</td>
                            <td>300元</td>
                            <td>1111元</td>
                        </tr>
                    </tbody>
                </table>
            </div>
            <div class="box box-r none">
                <h4 class="title">快速入口</h4>
                <div class="entrance">
                    <a href="" class="ann-btn">我要发标</a>
                </div>
            </div>
        </div>
        <div class="action-bar" style="text-align:right;">
            <a href="javascript:;" class="btn btn-primary" style="width:83px;" id="opAddBtn" type="standard_tablist">我要发标</a>

        </div>
        <div class="title-bar">
            <h4 class="title">选标</h4>
        </div>
        <div class="tab" id="listCon">
          
        </div>
    </div>
    <div class="modal fade model delmodel" id="delModel" tabindex="-1" role="dialog">
        <div class="modal-dialog" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title" id="exampleModalLabel">废标</h4>
                </div>
                <div class="modal-body">
                    <form>
                        <div class="form-group">
                            <label for="recipient-name" class="control-label">废标原因:</label>
                            <select class="form-control select" id="reason">
                                <option value="1">原因1</option>
                            </select>
                        </div>
                        <div class="form-group">
                            <label for="message-text" class="control-label" style="vertical-align: top;">详情描述:</label>
                            <textarea class="form-control textarea" id="message-text"></textarea>
                        </div>
                    </form>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn sure" id="delModelSubmit">提 交</button>
                    <button type="button" class="btn cancel" data-dismiss="modal">取 消</button>
                </div>
            </div>
        </div>
    </div>
    <div class="modal fade model selmodel" id="selModel" tabindex="-1" role="dialog">
        <div class="modal-dialog" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title" id="exampleModalLabel">选标管理</h4>
                </div>
                <div class="modal-body" id="selModelCon">
                </div>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript" src="operator.js"></script>
<!--公告弹框-->
<script id="issueTpl" type="text/template">
    <div id="issueTmp">
        <div class="issue-mask" id="issueMask"></div>
        <div class="issue-notice">
            <div class="top">公告查看<a href="javascript:;" class="close" id="noticeClose">X</a></div>
            <div class="mid">
                <div class="group">
                    <label  class="slabel">公告标题：</label>
                    <input type="text" class="input" id="noticeTitle" value="<%=title%>">
                </div>
                <div class="group">
                    <label  class="slabel">公告内容：</label>
                    <textarea class="textarea" id="noticeCon"><%=content%></textarea>
                </div>          
            </div>
        </div>
    </div>
</script>

<!--选标弹框-->
<script type="text/template" id="selTpl">
    <table class="table table-hover table-responsive">
        <tr class="thead">
            <td class="td1">企业编号</td>
            <td class="td2">企业名称</td>
            <td class="td3">竞标价格</td>
            <td class="td4">报价时间</td>
            <td class="td5">操作</td>
        </tr>
        <tr class="trh7">
            <td class="" colspan="5">&nbsp;</td>
        </tr>
        <%_.each(obj,function(item,i){%>
            <tbody class="tbody tbody-<%=(i%2 == 0 ? 1:2)%>">
                <tr>
                    <td>
                        <a href="javascript:;">
                            <%=item._bid_no%>
                        </a>
                    </td>
                    <td>
                        <%=item._wuliu_name%>
                    </td>
                    <td>
                        <%=item._price%>
                    </td>
                    <td>
                        <%=item._operator_time%>
                    </td>
                <td><a href="javascript:;" data-name="selBid" data-itemid="<%=item._bid_wl_id%>" data-mybid="<%=item._bid_id%>">选中</a></td>
                </tr>
            </tbody>
            <%})%>
    </table>
</script>
<script type="text/template" id="listTpl">

    <table class="table table-hover table-responsive">
        <tbody>
            <tr class="thead">
                <td>标书编号</td>
                <td>订单编号</td>
                <td>开标时间</td>
                <td>结标时间</td>
                <td>收货地</td>
                <td>状态</td>
                <td>操作</td>
            </tr>
            <tr>
                <td colspan="7">&nbsp;</td>
            </tr>
        </tbody>
        <%_.each(obj,function(item,i){%>
            <tbody class="tbody tbody-<%=(i%2==0 ? 1 :2)%>">
                <tr>
                    <td>
                        <a href="javascript:;" class="bid-no" data-id="<%=item.bid_id%>">
                            <%=item.bid_no%>
                        </a>
                    </td>
                    <td class="tdtextal">
                        <%=item.number%>
                    </td>
                    <td>
                        <%=item.start_bid_time%>
                    </td>
                    <td>
                        <%=item.end_bid_time%>
                    </td>
                    <td class="tdtextal">
                        <%=item.end_address%>
                    </td>
                 <td class="">
                        <%if(item.state==1){%>
                            新增标书
                            <%}else if(item.state==10){%>
                                竞标中
                                <%}else if(item.state==20){%>
                                    竞标结束
                                    <%}else if(item.state==100){%>
                                        等待取货
                                        <%}else if(item.state==105){%>
                                            未取货
                                            <%}else if(item.state==110){%>
                                                取货成功
                                                <%}else if(item.state==115){%>
                                                    到货确认
                                                    <%}else if(item.state==120){%>
                                                        回单确认
                                                        <%}else if(item.state==150){%>
                                                            已结款
                                                            <%}else if(item.state==-1){%>
                                                                删除
                                                                <%}%>
                                                                </td>
                    
                    
                    <td>
                        <a href="#" class="sel" data-toggle="modal" data-target="#selModel" data-itemid="<%=item.bid_id%>">选标</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:;" data-toggle="modal" data-target="#delModel" data-itemid="<%=item.bid_id%>" data-bidno="<%=item.bid_No%>">废标</a>
                    </td>
                </tr>
            </tbody>
            <%})%>
    </table>
</script>
<script type="text/template" id="AnnounceTmp">
<%_.each(obj,function(item,i){%>
    <li>
      <a href="javascript:;" class="jLook" data-id="<%=item.notice_id%>"><%=item.title%></a>
    </li>
<%})%> 
</script>
